export default {
	height: 500,
	menubar: false,
	language: 'zh_CN',
	language_url: '/tinymce/langs/zh_CN.js',
	theme_url: '/tinymce/themes/silver/theme.min.js',
	content_css: '/tinymce/skins/ui/oxide/content.min.css',
	plugins: [
		'table advlist autolink lists link charmap print preview hr anchor pagebreak',
		'searchreplace wordcount visualblocks visualchars code fullscreen',
		'insertdatetime nonbreaking save table contextmenu directionality',
		'emoticons textcolor colorpicker textpattern image imagetools code codesample toc'
	],
	toolbar: 'styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | forecolor backcolor | table bullist numlist outdent indent | image',
	table_toolbar: false,
	setup(editor) {
		editor.on('input', () => {
			if (!!callback && typeof callback === 'function') {
				callback(editor.getContent());
			}
		});
	},
	image_advtab: true,
	//images_upload_url
	paste_data_images: true,
	automatic_uploads: true,
	media_live_embeds: true, //查看上传的视频
	//图片选择上传
	images_upload_handler: (blobInfo, success, failure) => {
		console.log(blobInfo, success, failure);
	}
}